﻿using CleanArchitecture.Infrastructure.ModelBinding;
using System.ComponentModel;
using System.ComponentModel.DataAnnotations;

namespace CleanArchitecture.Infrastructure.Models
{
    //[Validator(typeof(LoginValidator))]
    public partial class LoginModel : BaseEntityModel
    {
        [NoTrim]
        [DisplayName("登录账号")]
        public string LoginUser { get; set; }

        [DataType(DataType.Password)]
        [NoTrim]
        [DisplayName("登录密码")]
        public string Password { get; set; }

        [DisplayName("下次自动登录")]
        public bool RememberMe { get; set; }

        [DisplayName("请输入短信验证码")]
        public string SmsCode  { get; set; }
        
        [DisplayName("请输入验证码")]
        public string CaptchaCode { get; set; }
    }
}